﻿<%@ Page Language="C#" ValidateRequest="false" MasterPageFile="~/System/MasterPage2.master"
    AutoEventWireup="true" CodeFile="project_bulletin.aspx.cs" Inherits="Agency_project_bulletin"
    Title="发布公告" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Agency" runat="Server">

    <script language="vbscript">

	Function SaveFile(byval ContentHtml,byval ContentText,byval wordCount)
	    If len( document.all("txtName").value) =0 Then
            msgbox "标题不能为空！",16
            document.all("txtName").focus()
          
	    elseIf len( ContentText) =0 Then
            msgbox "内容不能为空！",16
            
          
        Else
			lngMsg = msgbox("确实要保存吗？",36,"法律法规")
			
			If lngMsg = 6 Then
			document.all("txtContentHtml").value=ContentHtml
			document.all("txtContentText").value=ContentText
			aspnetForm.submit()
			End If
        End If	    
	End Function
	Sub window_onload()
	
        SetTimeout "Load()",2000
    End Sub

    Sub Load()
     
          ifrPageEdit.ifrEdit.document.body.innerHTML = document.all("txtContentHtml").value
    End Sub 
    </script>

    <script language="javascript" src="../common/javascript/calendar.js" type="text/javascript">function Submit1_onclick() {
    </script>

    <script language="vbscript" src="../Common/yz.vbs"></script>

    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="tabData">
        <tr>
            <td class="table_td3" style="height: 24px; text-align: right;">
                标题：
            </td>
            <td class="table_td2" style="height: 24px">
                <input type='text' name='txtName' size='40' style="width: 389px" notnull='标题' invertedcomma='标题'
                    value='<%=strName1 %>'>
            </td>
        </tr>
        <tr>
            <td class="table_td3" style="text-align: right;">
                项目开始时间：
            </td>
            <td class="table_td2">
                <asp:TextBox ID="txtProjectBeginDate" runat="server" onclick="javascript:fPopCalendar(this,this);"
                    NotNull="项目开始时间" dataType="Date" format="ymd" require="true" msg="日期不存在" DateTimeOnly="项目开始时间"
                    Width="389px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="table_td3" style="text-align: right;">
                项目结束时间：
            </td>
            <td class="table_td2">
                <asp:TextBox ID="txtProjectEndDate" runat="server" onclick="javascript:fPopCalendar(this,this);"
                    NotNull="项目结束时间" dataType="Date" format="ymd" require="true" DateTimeOnly="项目结束时间"
                    msg="日期不存在" Width="389px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="table_td3" style="text-align: right;">
                开标时间：
            </td>
            <td class="table_td2">
                <asp:TextBox ID="txtBidDate" runat="server" onclick="javascript:fPopCalendar(this,this);"
                    NotNull="开标时间" dataType="Date" format="ymd" require="true" DateTimeOnly="开标时间"
                    msg="日期不存在" Width="389px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="table_td3" style="text-align: right;">
                内容：
            </td>
            <td class="table_td2">
                <iframe name="ifrPageEdit" width="100%" height="400" src="../PageEdit/PageEdit.htm">
                </iframe>
                <input type='hidden' name='txtContentText'>
                <textarea name='txtContentHtml' style='display: none'><%=strContent1 %></textarea>
            </td>
        </tr>
        <tr>
            <td class="td_center" colspan="2">
                <input type="button" name="btnSubmit" id="btnSubmit" value="保存" class="button_80"
                    onclick="javascript:ifrPageEdit.SaveFile()">
            </td>
        </tr>
    </table>
</asp:Content>
